package com.fusingdata.bean;

import org.litepal.annotation.Encrypt;
import org.litepal.crud.DataSupport;

/**
 * Created by DawnOct on 2017/9/27.
 */

public class SignatureBean extends DataSupport {
    private String pk;
    @Encrypt(algorithm = AES)
    private String keyCer;//265个字节(含有发码平台公钥,密钥索引)
    private String keyIndex; //密钥索引(用来拼接二维码内容)
    //二维码版本
    private String qrversion;//(用来拼接二维码内容)
    //密钥版本
    private String keyVersion;//(用来拼接二维码内容)
    //发码方最终签名(密文16进制) 155个字节 cer
    @Encrypt(algorithm = AES)
    private String signatureFianlEncoded;//(用来拼接二维码内容)
    //signature1 明文(16进制) 128个字节
    @Encrypt(algorithm = AES)
    private String signature1Plain;
    //签名内容
    private String content;
    //生成时间
    private long generateTime;
    //截止有效时间戳
    private long validTime;


    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public long getGenerateTime() {
        return generateTime;
    }

    public void setGenerateTime(long generateTime) {
        this.generateTime = generateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getSignature1Plain() {
        return signature1Plain;
    }

    public void setSignature1Plain(String signature1Plain) {
        this.signature1Plain = signature1Plain;
    }

    public String getSignatureFianlEncoded() {
        return signatureFianlEncoded;
    }

    public void setSignatureFianlEncoded(String signatureFianlEncoded) {
        this.signatureFianlEncoded = signatureFianlEncoded;
    }

    public String getQRVersion() {
        return qrversion;
    }

    public void setQRVersion(String QRVersion) {
        this.qrversion = QRVersion;
    }

    public String getKeyVersion() {
        return keyVersion;
    }

    public void setKeyVersion(String keyVersion) {
        this.keyVersion = keyVersion;
    }

    public String getKeyCer() {
        return keyCer;
    }

    public void setKeyCer(String keyCer) {
        this.keyCer = keyCer;
    }

    public String getKeyIndex() {
        return keyIndex;
    }

    public void setKeyIndex(String keyIndex) {
        this.keyIndex = keyIndex;
    }
}
